Structure and Function
The anal canal (See Gross Anatomy) is the last part of the gastrointestinal tract.
It is about 3 to 4 cm long and lies completely extraperitoneally.

It begins at the anorectal junction distally from the perineal flexure and ends at the anus.